#include"stack.h"


void STTest()
{
	ST st;
	STInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("size: %d\n", STSize(&st));

	while (!StackEmpty(&st))
	{
		STDataType data = StackTop(&st);
		printf("%d ", data);
		StackPop(&st);
	}
	printf("size: %d\n", STSize(&st));
}
int main()
{
	STTest();
	return 0;
}